package com.ddstation.onsitelaw.service;


import com.ddstation.onsitelaw.entity.auditentity.*;

import java.util.List;

public interface ClinicAuditService1 {

    /**
     * 智能审方
     *
     * @param medicalId     门诊Id
     * @param prescriptions 病历处方
     * @return
     */
    public List<DtInvsViolationManageEntity> auditClinic(Integer medicalId, List<DtClinicTradePrescriptionEntity> prescriptions);

    /**
     * 审核病历诊断
     * 810001:医疗机构超范围诊疗
     * 810002:医师超范围开具处方
     * 810003:多个执业地点同时开具处方
     *
     * @param medical     门诊病历
     * @param institution 机构
     * @param doctor      医生
     * @return
     */
    public void auditOutpatientMedical(DtHealthDataOutpatientMedicalEntity medical
            , DtHealthManageInstitutionEntity institution
            , DdDoctorEntity doctor);

    /**
     * 审核病历处方
     *
     * @param medical       门诊病历
     * @param institution   机构
     * @param doctor        医生
     * @param prescriptions 病历处方
     * @return
     */
    public void auditPrescriptions(DtHealthDataOutpatientMedicalEntity medical
            , DtHealthManageInstitutionEntity institution
            , DdDoctorEntity doctor
            , List<DtClinicTradePrescriptionEntity> prescriptions);

}
